package com.vitabuybuy.tv.ui.mine.adapter

import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import com.library.common.widget.RecycleViewDivider
import com.vitabuybuy.tv.R
import com.vitabuybuy.tv.databinding.ItemBillDateBinding
import com.library.common.base.BindRecycAdapter

class BillDateAdapter : BindRecycAdapter<ItemBillDateBinding, String>() {
    private var billAdapter: BillAdapter? = null
    override fun onBindViewHolder(
        mBinding: ItemBillDateBinding,
        itemData: String,
        holder: RecyclerView.ViewHolder,
        position: Int
    ) {
        billAdapter = BillAdapter()
        mBinding.listview.apply {
            adapter = billAdapter
            layoutManager = LinearLayoutManager(mContext)
            addItemDecoration(RecycleViewDivider(mContext, 1))
        }
    }

    override fun normalViewId(viewType: Int): Int {
        return R.layout.item_bill_date
    }
}
